package com.starlink.model.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.starlink.common.domain.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhanghong
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("mall_integration_order")
public class MallIntegrationOrderDO extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /** 用户ID */
    @TableField("user_id")
    private Long userId;
    /** 收货地址ID */
    @TableField("address_id")
    private Long addressId;
    /** 积分商品ID */
    @TableField("mall_integration_id")
    private Long mallIntegrationId;
    /** 订单状态 */
    @TableField("status")
    private String status;
    /** 订单编号 */
    @TableField("order_num")
    private String orderNum;
    /** 支付类型 1积分支付 2积分+钱 */
    @TableField("payment_type")
    private Integer paymentType;
    /** 金钱价格 */
    @TableField("price")
    private BigDecimal price;
    /** 积分价格 */
    @TableField("integral_price")
    private Long integralPrice;
    /** 运费 */
    @TableField("freight")
    private BigDecimal freight;
    /** 取消时间 */
    @TableField("cancel_time")
    private Date cancelTime;
    /** 购买数量 */
    @TableField("quantity")
    private Long quantity;
    /** 是否售后 0：否 1：是 */
    @TableField("is_refunds")
    private Integer isRefunds;
    /** 超时时间 */
    @TableField("timeout")
    private Date timeout;
    /** 备注 */
    @TableField("comments")
    private String comments;
}
